﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using CourseManagerModel;
namespace CourseManagerWPF
{
    /// <summary>
    /// App.xaml 的交互逻辑
    /// </summary>
    public partial class App : Application
    {
        /// <summary>
        /// 应用程序启动执行的事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            FrmMain frmMain = new FrmMain();
            FrmAdminLogin frmAdminLogin = new FrmAdminLogin();
            if (frmAdminLogin.ShowDialog() == true)
            {
                frmMain.Show();
            }
            else
            {
                frmMain.Close();
            }
        }

        //定义全局变量保存登录的信息
        public static Teacher Teacher = null;
    }
}
